package tsing.javase.thread.pool.pratice;

import java.util.concurrent.CountDownLatch;

/**
 * @Date 2024/2/8 10:13
 */
public class ThreadDemo implements Runnable{

    private CountDownLatch countDownLatch;


    public ThreadDemo(CountDownLatch countDownLatch) {
        this.countDownLatch = countDownLatch;
    }

    @Override
    public void run() {


        try {
            System.out.println("线程开始休眠");
            Thread.sleep(10000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

    }
}
